CC=g++
CFLAGS=-shared -O3 -Wall -fPIC 

SRCDIR=./src/
BINDIR=./bin/
INCDIR=./src/

SRCS=$(SRCDIR)hc_sr04.cpp $(SRCDIR)libul_gpiod.c

# Windows
LIBNAME=libul.so

all:  $(LIBNAME)

$(LIBNAME):$(SRCS)
	 $(CC) -o $(BINDIR)$@ $(CFLAGS) $^ -I$(INCDIR)  -lgpiod